package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FeatureTypeMapper;
import com.ruoyi.system.domain.FeatureType;
import com.ruoyi.system.service.IFeatureTypeService;

/**
 * 特色类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-04
 */
@Service
public class FeatureTypeServiceImpl implements IFeatureTypeService 
{
    @Autowired
    private FeatureTypeMapper featureTypeMapper;

    /**
     * 查询特色类型
     * 
     * @param featureTypeId 特色类型主键
     * @return 特色类型
     */
    @Override
    public FeatureType selectFeatureTypeByFeatureTypeId(Long featureTypeId)
    {
        return featureTypeMapper.selectFeatureTypeByFeatureTypeId(featureTypeId);
    }

    /**
     * 查询特色类型列表
     * 
     * @param featureType 特色类型
     * @return 特色类型
     */
    @Override
    public List<FeatureType> selectFeatureTypeList(FeatureType featureType)
    {
        return featureTypeMapper.selectFeatureTypeList(featureType);
    }

    /**
     * 新增特色类型
     * 
     * @param featureType 特色类型
     * @return 结果
     */
    @Override
    public int insertFeatureType(FeatureType featureType)
    {
        return featureTypeMapper.insertFeatureType(featureType);
    }

    /**
     * 修改特色类型
     * 
     * @param featureType 特色类型
     * @return 结果
     */
    @Override
    public int updateFeatureType(FeatureType featureType)
    {
        return featureTypeMapper.updateFeatureType(featureType);
    }

    /**
     * 批量删除特色类型
     * 
     * @param featureTypeIds 需要删除的特色类型主键
     * @return 结果
     */
    @Override
    public int deleteFeatureTypeByFeatureTypeIds(Long[] featureTypeIds)
    {
        return featureTypeMapper.deleteFeatureTypeByFeatureTypeIds(featureTypeIds);
    }

    /**
     * 删除特色类型信息
     * 
     * @param featureTypeId 特色类型主键
     * @return 结果
     */
    @Override
    public int deleteFeatureTypeByFeatureTypeId(Long featureTypeId)
    {
        return featureTypeMapper.deleteFeatureTypeByFeatureTypeId(featureTypeId);
    }
}
